import { http } from "@/utils/http";

// 工艺查询
export const queryTechnologyList = (params?: object) => {
  return http.request("get", `/fab/api/v1/supplyConsume/technology/select`, {
    params
  });
};

// 产品查询
export const queryProductList = (params?: object) => {
  return http.request("get", `/fab/api/v1/supplyConsume/product/select`, {
    params
  });
};

// lot 筛选
export const queryLotList = (params?: object) => {
  return http.request("get", `/fab/api/v1/supplyConsume/lot/select`, {
    params
  });
};

// wafer 筛选
export const queryWaferList = (params?: object) => {
  return http.request("get", `/fab/api/v1/supplyConsume/wafer/select`, {
    params
  });
};

// 消耗
export const querySupplyConsume = (data?: object) => {
  return http.request("post", `/fab/api/v1/supplyConsume/technology`, {
    data
  });
};

// flow
export const queryFlow = (data?: object) => {
  return http.request("post", `/fab/api/v1/supplyConsume/flow`, {
    data
  });
};
// 总消耗
export const queryTotalConsume = (data?: object) => {
  return http.request("post", `/fab/api/v1/supplyConsume/technology/total`, {
    data
  });
};
